const { default: mongoose } = require('mongoose')
const express= require('mongoose')
const config = require('./config')
function main(success,error){
    mongoose.connect(config.admin).then(res=>{
        console.log('mongodb connect success')
        success && success()
    },(error)=>{
        console.log('mongodb connect filad')
    })
}
module.exports = main;